﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.work_plan.type
{
    public partial class index : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new PlanTypeDao().SelectAll(base.Conn);
            if (table.Rows.Count > 0)
            {
                this.rptType.DataSource = table;
                this.rptType.DataBind();
            }
            else
            {
                this.litMessage.Text = base.ShowMessage("尚未定义计划类型");
            }
        }

    }
}
